import java.util.Scanner;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/7/5
 * Time:21:48
 **/
public class Main {
    /**
     * 骆驼命名法
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String str = sc.nextLine();
            char[] arr = str.toCharArray();
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] == '_') {
                    continue;
                }
                if (i>0&&arr[i-1]=='_') {
                    System.out.print((char) (arr[i]-32));
                }else {
                    System.out.print(arr[i]);
                }
            }
            System.out.println();
        }
    }
}
